//
//  GroupViewController.h
//  Blue-toothLight
//
//  Created by mazg on 15/6/29.
//  Copyright (c) 2015年 mazg. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreBluetooth/CoreBluetooth.h>
#import "LightModel.h"
#import "NSManagedObject+helper.h"
#import "HomeViewController.h"

@interface GroupViewController : UIViewController<UITableViewDelegate,UITableViewDataSource,HomeViewControllerDelegate>
- (IBAction)disMiss:(id)sender;
- (IBAction)addGroup:(id)sender;

- (IBAction)toggleSwitch:(id)sender;
@property (weak, nonatomic) IBOutlet UIView *setView;
- (IBAction)setGroupBtn:(id)sender;
- (IBAction)toggleOpen:(id)sender;
@property (weak, nonatomic) IBOutlet UITextField *setTextfield;



@property (nonatomic,strong) UITableView  *tableView;//显示列表信息的tableview（从下方弹出来的）
@property (nonatomic,assign) BOOL isShowTableView;
@property (weak, nonatomic) IBOutlet UITableView *groupTableView;//显示灯组信息的tableview
@property (nonatomic,strong) NSMutableArray *groupTableViewList;

@property (nonatomic,strong) NSMutableArray *allPerArr;
@property (nonatomic,strong) NSMutableArray *allConnectedPerArr;
@property (nonatomic,strong) NSMutableArray *perForShowArr;

@end
